

c_options = -ffreestanding -nostdinc -c 
ld_options = -T link.ld --oformat binary


%.o: build/%.c
	gcc ${c_options} -o build/$@ $<
%.bin: $(cobjs)
	ld ${ld_options} -o $@ $<

%.bin: %.s
	nasm -f bin -o $@ $<


os.img: %.bin
	cat $< > $@





